import request from '../utils/request';
// 获取当前登录企业账号信息 /zsrencai/api/company/user/current-info
export const currentInfo = () => {
    return request.get('/zsrencai/api/person/user/current-info')
}
// 修改手机号之前的校验    
export const phoneValidate = params => {
    return request.get('/zsrencai/api/person/user/phone/validate', {
        params
    })
}
// 修改邮箱之前的校验   
export const mailValidate = params => {
    return request.get('/zsrencai/api/person/user/mail/validate', {
        params
    })
}
// 修改用户名  /zsrencai/api/person/user/update/user-name
export const updateUserName = query => {
    return request.put('/zsrencai/api/person/user/update/user-name?' + query)
}
// 修改姓名  /zsrencai/api/person/user/update/name
export const updateName = query => {
    return request.post('/zsrencai/api/person/user/update/name', query)
}
// 修改密码  /zsrencai/api/person/user/update/pass-word
export const updatePassword = query => {
    return request.put('/zsrencai/api/person/user/update/pass-word', query)
}
// 修改手机   /zsrencai/api/person/user/update/phone-mail
export const updatePhone = query => {
    return request.put('/zsrencai/api/person/user/phone', query)
}
// 修改邮箱
export const updateMail = query => {
    return request.put('/zsrencai/api/person/user/mail', query)
}




// feat:常用语设置
// 常用语列表
export const commonWordsList = () => {
    return request.get('/zsrencai/api/person/person-common-words/list')
}

//添加常用语
export const commonWordsSave = query => {
    return request.post('/zsrencai/api/person/person-common-words/save', query)
}
// 删除常用语
export const deleteById = query => {
    return request.get(`/zsrencai/api/person/person-common-words/delete/${query}`)
}
// 编辑常用语
export const commonWordsUpdate = query => {
    return request.put('/zsrencai/api/person/person-common-words/update', query)
}
// 上移
export const moveUp = query => {
    return request.put(`/zsrencai/api/person/person-common-words/move/up/${query}`)
}
// 下移
export const moveDown = query => {
    return request.put(`/zsrencai/api/person/person-common-words/move/down/${query}`)
}